From e8299fcc5b663248d428ea405aa34ec9d35ebd60 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 12 Jun 2007 11:29:27 +0100 Subject: [PATCH] Fix xm vcpu-pin command for keyword 'all'. The keyword 'all' was supported as the 2nd argument of xm vcpu-pin command since changeset 11619. However, we cannot use the keyword 'all' since changeset 14481. Signed-off-by: Masaki Kanno --- tools/python/xen/xm/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index bc27b6f9cd..d19a131972 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -140,7 +140,7 @@ SUBCOMMAND_HELP = { 'Send a trigger to a domain.'), 'vcpu-list' : ('[]', 'List the VCPUs for a domain or all domains.'), - 'vcpu-pin' : (' ', + 'vcpu-pin' : (' ', 'Set which CPUs a VCPU can use.'), 'vcpu-set' : (' ', 'Set the number of active VCPUs for allowed for the' @@ -1330,7 +1330,7 @@ def xm_vcpu_pin(args): return cpus dom = args[0] - vcpu = int(args[1]) + vcpu = args[1] if args[2] == 'all': cpumap = cpu_make_map('0-63') else: -- 2.30.2